package com.shuigu.common.utils.oss;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@EnableConfigurationProperties(AliOssProperties.class)
@Configuration
public class OssConfig {

    @Bean
    public AliyunOss aliyunOss(AliOssProperties aliOssProperties){

        return new AliyunOss(aliOssProperties);
    }
}
